<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}photo.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sgallery.js"></script>
<style type="text/css" >
.item-prev a { cursor: url({IMG_PATH}web/prev.cur), auto; }
.item-next a { cursor: url({IMG_PATH}web/next.cur), auto; }
body {
	background-color: #333;
}
</style>
</head>
<body>
{template "content","header"}
<div class="main Photo w980">
	<div id="Show">
		<h1>{$title}
			<span class="stat" id="picnum"></span>
		</h1>
		<div class="info">{$inputtime}&nbsp;&nbsp;&nbsp;来源：{$copyfrom}&nbsp;&nbsp;&nbsp;评论：<a href="#comment_iframe" id="comment">0</a></div>
		<div class="tools">
			<div class="play">
				<a class="pre" href="javascript:;" title="上一张" onclick="showpic('pre')"></a>
				<a class="auto" href="javascript:;" onclick="return false;"></a>
				<a class="next" href="javascript:;" onclick="showpic('next')" title="下一张"></a>
			</div>
			<div class="share _bbox">
				<span id='favorite'><a href="javascript:;" onclick="add_favorite('{$title}');" class="t6">收藏</a></span>&nbsp;
				分享到：&nbsp;<img src="http://v.t.qq.com/share/images/s/weiboicon16.png" onclick="postToWb();" title="分享到腾讯微博" />
				<script type="text/javascript">
				function postToWb(){
					var _t = encodeURI(document.title);
					var _url = encodeURIComponent(document.location);
					var _appkey = encodeURI("cba3558104094dbaa4148d8caa436a0b");
					var _pic = encodeURI('{$thumb}');
					var _site = '';
					var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
					window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
				}
				</script>
				<script type="text/javascript">document.write('<a href="http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(location.href)+'&appkey=3172366919&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到新浪微博" class="t1" target="_blank">&nbsp;</a>');</script>
				<script type="text/javascript">document.write('<a href="http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到豆瓣" class="t2" target="_blank">&nbsp;</a>');</script>
				<script type="text/javascript">document.write('<a href="http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('{new_addslashes($title)}')+'" title="分享到人人" class="t3" target="_blank">&nbsp;</a>');</script>
				<script type="text/javascript">document.write('<a href="http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('{new_addslashes($title)}')+'&rurl='+encodeURIComponent(location.href)+'&rcontent=" title="分享到开心网" class="t4" target="_blank">&nbsp;</a>');</script>
				<script type="text/javascript">document.write('<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'" title="分享到QQ空间" class="t5" target="_blank">&nbsp;</a>');</script>
			</div>
		</div>
		<div class="big-pic">
			<div id="big-pic"><!-- 展示区 --></div>
			<div class="item-prev">
				<a id="photoPrev" title="&lt;上一页" target="_self" hidefocus="true" href="javascript:;" onclick="showpic('pre');"></a>
			</div>
			<div class="item-next">
				<a id="photoNext" title="下一页&gt;" target="_self" hidefocus="true" href="javascript:;" onclick="showpic('next')"></a>
			</div>
			<a href="javascript:;" class="max" onclick="showpic('big');">查看原图</a>
			<div id="endSelect" style="display: none;">
				<div id="endSelClose" onclick="$('#endSelect').hide();">
				</div>
				<div class="bg">
				</div>
				<div class="E_Cont">
					<p>您已经浏览完所有图片</p>
					<p><a id="rePlayBut" href="javascript:void(0)" onclick="showpic('next', 1);"></a><a id="nextPicsBut" href="{$next_page[url]}"></a></p>
				</div>
			</div>
		</div>
		<div class="list-pic">
			<div class="pre">
				<div>
					<a href="{$previous_page[url]}"><img src="{thumb($previous_page[thumb], 125, 105, 0)}" title="{$previous_page[title]}"></a>
				</div>
				<div class="label"><a href="{$previous_page[url]}">&lt;上一组</a></div>
			</div>
			<div class="center _float">
				<a href="javascript:;" onclick="showpic('pre')" class="pre-bnt"><span></span></a>
				<div class="cont" style="position:relative">
					<ul id="pictureurls" style="position:absolute;">
						{loop $pictureurls $pic_k $r}
						<li>
							<a href="javascript:;" hidefocus="true"><img src="{thumb($r[url], 125, 100, 0)}" alt="{$r[alt]}" rel="{$r[url]}"/></a>
						</li>
						{/loop}
					</ul>
				</div>
				<a href="javascript:;" onclick="showpic('next')" class="next-bnt"><span></span></a>
			</div>
			<div class="next">
				<div>
					<a href="{$next_page[url]}" title="{$next_page[title]}"><img src="{thumb($next_page[thumb], 125, 105, 0)}"></a>
				</div>
				<div class="label"><a href="{$next_page[url]}">下一组&gt;</a></div>
			</div>
		</div>
		<div class="text" id="picinfo"></div>
		<div class="content">{$content}</div>
	</div>
	<div class="bk10">
	</div>
	<div id="load_pic" style="display:none;" rel="{IMG_PATH}msg_img/loading_d.gif">
	</div>
	<script language="JavaScript">
	<!--
	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)    {
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}
	//-->
	</script>
</div>
<script type="text/javascript" src="{JS_PATH}show_picture.js"></script>
<script type="text/javascript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
{template "content","footer"}
</body>
</html>
